package com.huibao.hulibao.activity;

import android.os.Bundle;
import android.widget.TextView;

import com.huibao.hulibao.R;
import com.huibao.hulibao.utils.MyUtils;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by lizhaoyong on 2018/8/31.
 */
public class VersionActivity extends BaseActivity {

    @BindView(R.id.tv_version_info)
    TextView tv_version_info;

    @OnClick({R.id.tv_back, R.id.iv_back})
    public void back() {
        onBackPressed();
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_version);
        ButterKnife.bind(this);
        tv_version_info.setText(getResources().getString(R.string.version) + MyUtils.getAppVersionName(getApplicationContext()));
    }
}
